package com.glodon.ggzy.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

/**
 * GgJsWinningPublic entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "GG_JS_WINNING_PUBLIC")
public class GgJsWinningPublic implements java.io.Serializable {

	// Fields    

	private String id;

	private String projectId;

	private String projectCode;

	private String projectName;

	private String winningUnit;

	private String projectDirector;

	private Double winningPrice;

	private String qualityGrade;

	private Date publicStartTime;

	private Date publicEndTime;

	private Date openBidTime;

	private Date evaluationTime;

	private String winningTimeLimit;

	private String remark;

	private String winningText;

	// Constructors

	/** default constructor */
	public GgJsWinningPublic() {
	}

	/** full constructor */
	public GgJsWinningPublic(String projectId, String projectCode, String projectName, String winningUnit, String projectDirector,
			Double winningPrice, String qualityGrade, Date publicStartTime, Date publicEndTime, Date openBidTime, Date evaluationTime,
			String winningTimeLimit, String remark, String winningText) {
		this.projectId = projectId;
		this.projectCode = projectCode;
		this.projectName = projectName;
		this.winningUnit = winningUnit;
		this.projectDirector = projectDirector;
		this.winningPrice = winningPrice;
		this.qualityGrade = qualityGrade;
		this.publicStartTime = publicStartTime;
		this.publicEndTime = publicEndTime;
		this.openBidTime = openBidTime;
		this.evaluationTime = evaluationTime;
		this.winningTimeLimit = winningTimeLimit;
		this.remark = remark;
		this.winningText = winningText;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ID", unique = true, nullable = false, length = 40)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "PROJECT_ID", length = 40)
	public String getProjectId() {
		return this.projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	@Column(name = "PROJECT_CODE", length = 100)
	public String getProjectCode() {
		return this.projectCode;
	}

	public void setProjectCode(String projectCode) {
		this.projectCode = projectCode;
	}

	@Column(name = "PROJECT_NAME", length = 512)
	public String getProjectName() {
		return this.projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	@Column(name = "WINNING_UNIT", length = 256)
	public String getWinningUnit() {
		return this.winningUnit;
	}

	public void setWinningUnit(String winningUnit) {
		this.winningUnit = winningUnit;
	}

	@Column(name = "PROJECT_DIRECTOR", length = 256)
	public String getProjectDirector() {
		return this.projectDirector;
	}

	public void setProjectDirector(String projectDirector) {
		this.projectDirector = projectDirector;
	}

	@Column(name = "WINNING_PRICE", precision = 24, scale = 4)
	public Double getWinningPrice() {
		return this.winningPrice;
	}

	public void setWinningPrice(Double winningPrice) {
		this.winningPrice = winningPrice;
	}

	@Column(name = "QUALITY_GRADE", length = 256)
	public String getQualityGrade() {
		return this.qualityGrade;
	}

	public void setQualityGrade(String qualityGrade) {
		this.qualityGrade = qualityGrade;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "PUBLIC_START_TIME", length = 20)
	public Date getPublicStartTime() {
		return this.publicStartTime;
	}

	public void setPublicStartTime(Date publicStartTime) {
		this.publicStartTime = publicStartTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "PUBLIC_END_TIME", length = 20)
	public Date getPublicEndTime() {
		return this.publicEndTime;
	}

	public void setPublicEndTime(Date publicEndTime) {
		this.publicEndTime = publicEndTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "OPEN_BID_TIME", length = 20)
	public Date getOpenBidTime() {
		return this.openBidTime;
	}

	public void setOpenBidTime(Date openBidTime) {
		this.openBidTime = openBidTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "EVALUATION_TIME", length = 20)
	public Date getEvaluationTime() {
		return this.evaluationTime;
	}

	public void setEvaluationTime(Date evaluationTime) {
		this.evaluationTime = evaluationTime;
	}

	@Column(name = "WINNING_TIME_LIMIT", length = 256)
	public String getWinningTimeLimit() {
		return this.winningTimeLimit;
	}

	public void setWinningTimeLimit(String winningTimeLimit) {
		this.winningTimeLimit = winningTimeLimit;
	}

	@Column(name = "REMARK", length = 512)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "WINNING_TEXT")
	public String getWinningText() {
		return this.winningText;
	}

	public void setWinningText(String winningText) {
		this.winningText = winningText;
	}

}
